package com.youbar.client.service;

import javax.servlet.http.HttpServletRequest;

/**
 * token 拦截
 */
public interface TokenService {

    /**
     * token 验证
     * @param request
     * @return
     */
    boolean tokenValid(HttpServletRequest request);

    /**
     * 判断是否是例外的接口，以资源开头为准
     * @param request
     * @return
     */
    boolean isExtraUrl(HttpServletRequest request);
}
